
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

云编译
云编译相关接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKCompile/CompileExecutor.h>


/// 根据id获取构建任务的配置信息
@implementation  CompileGetJobExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/{id}";
    return self;
}
@end

/// 根据id启动一个编译任务
@implementation  CompileStartJobExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/{id}:start";
    return self;
}
@end

/// 生成带有效期的包地址
@implementation  CompileGetExternalLinkExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/{jobid}/builds/{id}/externalLink";
    return self;
}
@end

/// 停止构建任务
@implementation  CompileStopBuildExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/{jobid}/builds/{id}:stop";
    return self;
}
@end

/// 创建Demo
@implementation  CompileCreateDemoExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/demo";
    return self;
}
@end

/// 查询获取编译任务列表，并显示最后一次编译的一些信息
   /// /v2/regions/cn-south-1/jobs/?sorts.1.name&#x3D;status&amp;sorts.1.direction&#x3D;asc&amp;pageNumber&#x3D;1&amp;pageSize&#x3D;10&amp;filters.1.name&#x3D;name&amp;filters.1.values.1&#x3D;我的job
   /// 
@implementation  CompileGetJobsExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}";
    return self;
}
@end

/// 删除一个编译任务
@implementation  CompileDeleteJobExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/regions/{regionId}/{id}";
    return self;
}
@end

/// 更新编译任务
@implementation  CompileUpdateJobExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"PUT";
    self.url = @"/regions/{regionId}/{id}";
    return self;
}
@end

/// 查询构建任务执行日志
@implementation  CompileGetBuildLogExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/{jobid}/builds/{id}/log";
    return self;
}
@end

/// 新建构建任务
@implementation  CompileCreateJobExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}";
    return self;
}
@end

/// 批量删除编译任务
@implementation  CompileDeleteJobsExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/regions/{regionId}";
    return self;
}
@end

/// 查询构建任务执行的状态
@implementation  CompileGetBuildStatusExecutor

-(id) initWithJDCloudClient:(CompileClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/{jobid}/builds/{id}/status";
    return self;
}
@end
